package cn.talkimages.web.admin.service.impl;

import cn.talkimages.web.admin.dao.KnowledgeDAO;
import cn.talkimages.web.admin.service.KnowledgeService;
import cn.talkimages.web.beans.KnowledgeBean;
import cn.talkimages.web.service.impl.BaseServiceImpl;

public class KnowledgeServiceImpl extends BaseServiceImpl implements
		KnowledgeService {

	private KnowledgeDAO knowledgeDAO;

	/**
	 * 创建知识分享
	 * 
	 * @param knowledge
	 * @throws Exception
	 */
	public void insertKnowledge(KnowledgeBean knowledge) throws Exception {
		knowledgeDAO.insertKnowledge(knowledge);
	}

	// -------------------------- Getter & Setter -------------------------- //

	public KnowledgeDAO getKnowledgeDAO() {
		return knowledgeDAO;
	}

	public void setKnowledgeDAO(KnowledgeDAO knowledgeDAO) {
		this.knowledgeDAO = knowledgeDAO;
	}

}
